(component
  (type $ty-foo:foo/foo (;0;)
    (instance
      (type (;0;) (record (field "f" u8)))
      (export (;1;) "foo" (type (eq 0)))
    )
  )
  (import "foo:foo/foo" (instance $foo:foo/foo (;0;) (type $ty-foo:foo/foo)))
  (core module $main (;0;)
    (type (;0;) (func (result i32)))
    (export "bar#foo" (func 0))
    (func (;0;) (type 0) (result i32)
      unreachable
    )
    (@producers
      (processed-by "wit-component" "$CARGO_PKG_VERSION")
      (processed-by "my-fake-bindgen" "123.45")
    )
  )
  (alias export $foo:foo/foo "foo" (type $foo (;1;)))
  (core instance $main (;0;) (instantiate $main))
  (type (;2;) (func (result $foo)))
  (alias core export $main "bar#foo" (core func $bar#foo (;0;)))
  (func $foo (;0;) (type 2) (canon lift (core func $bar#foo)))
  (alias export $foo:foo/foo "foo" (type $"#type3 foo" (@name "foo") (;3;)))
  (component $bar-shim-component (;0;)
    (type (;0;) (record (field "f" u8)))
    (import "import-type-foo" (type (;1;) (eq 0)))
    (import "import-type-bar" (type (;2;) (eq 1)))
    (type (;3;) (func (result 2)))
    (import "import-func-foo" (func (;0;) (type 3)))
    (export (;4;) "bar" (type 1))
    (type (;5;) (func (result 4)))
    (export (;1;) "foo" (func 0) (func (type 5)))
  )
  (instance $bar-shim-instance (;1;) (instantiate $bar-shim-component
      (with "import-func-foo" (func $foo))
      (with "import-type-foo" (type $"#type3 foo"))
      (with "import-type-bar" (type $foo))
    )
  )
  (export $bar (;2;) "bar" (instance $bar-shim-instance))
  (@producers
    (processed-by "wit-component" "$CARGO_PKG_VERSION")
  )
)
